@model OrchardCore.ContentFields.ViewModels.EditNumericFieldViewModel

@{
    var settings = Model.PartFieldDefinition.GetSettings<NumericFieldSettings>();
    string name = Model.PartFieldDefinition.DisplayName();
    decimal min = settings.Minimum.HasValue ? settings.Minimum.Value : 0;
    decimal max = settings.Maximum.HasValue ? settings.Maximum.Value : 10000;
}

<div class="form-group">
    <div class="row col-sm-3">
        <label asp-for="Value">@name</label>
        <div class="input-group mb-2">
            @if (settings.Minimum.HasValue)
            {
                <div class="input-group-prepend">
                    <div class="input-group-text">@min</div>
                </div>
            }
            <input asp-for="Value" class="form-control content-preview-select" placeholder="@settings.Placeholder" required="@settings.Required" />
            @if (settings.Maximum.HasValue)
            {
                <div class="input-group-append">
                    <div class="input-group-text">@max</div>
                </div>
            }
        </div>
        <span class="hint">@settings.Hint</span>
    </div>
</div>
